home *** CD-ROM | disk | FTP | other *** search
- function getPosition()
- {
- if(bg.clicked == "a1")
- {
- position -= step;
- }
- else if(bg.clicked == "a2")
- {
- position += step;
- }
- else if(bg.direction == bg.olddirection)
- {
- position += page * bg.direction;
- }
- if(1 < position)
- {
- position = 1;
- }
- else if(position < 0)
- {
- position = 0;
- }
- bg.m._y = position * bg.dragmax * 2 - bg.dragmax;
- }
- var styles = {Mac:1,PC:2,Custom1:3};
-